﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Default/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PagerQuery<PagerInfo,IEnumerable<K.EnterpriseLibary.Entity.NewsInfo>>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="SystemContent" runat="server">
    <div class="news">
        <table>
            <tr>
                <th>
                </th>
                <th>
                    ID
                </th>
                <th>
                    Title
                </th>
                <th>
                    AddTime
                </th>
            </tr>
            <% foreach (var item in Model.EntityList)
               { %>
            <tr>
                <td>
                    <%= Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %>
                    |
                    <%= Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%>
                </td>
                <td>
                    <%= Html.Encode(item.Id) %>
                </td>
                <td>
                    <%= Html.Encode(item.Title) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.PostTime))%>
                </td>
            </tr>
            <% } %>
        </table>
        <p>
            <%=Html.Pager("pager",Model.Pager.CurrentPageIndex,Model.Pager.PageSize,Model.Pager.RecordCount,PageMode.Numeric) %>
        </p>
    </div>
    <div class="pages"><%=Html.ActionLink("Next","StepOfNameList") %></div>
</asp:Content>
